/**
 * 
 */
package com.vcaresolution.logistic.util;

import java.util.HashMap;
import java.util.Map;

import org.quartz.JobDataMap;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;
import org.springframework.scheduling.quartz.QuartzJobBean;

/**
 * @author Kushal Shah
 *
 */
public class WebServiceProcessScheduleDataJob extends QuartzJobBean {

	@Override
	protected void executeInternal(JobExecutionContext jobContext) throws JobExecutionException {
		
		System.out.println("In WebServiceProcessScheduleDataJob ::::::::::::::::::::::::::::::::::");
		
		try {
			JobDataMap jodDataMap = jobContext.getJobDetail().getJobDataMap();
			@SuppressWarnings("unchecked")
			Map<String, String> properties = (HashMap)jodDataMap.get("properties");

			String durationInDays = properties.get("DAYS");
			System.out.println("In WebServiceProcessScheduleDataJob durationInDays :::::::::::::::::::::::::::::::::: "+durationInDays);
            
		} catch (Exception e) {
			e.printStackTrace();
		}
	}
}
